.coupon-item {
  width: 220px;
  margin-bottom: 22px;

  &-head {
    position: relative;
    img {
      position: absolute;
      z-index: -1;
      width: 220px;
      height: 62px;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }

    &-type {
      // position: absolute;
      display: flex;
      justify-content: space-between;
      color: #fff;
      padding-top: 5px;
      padding-left: 15px;
      padding-right: 10px;
      p {
        span:first-child {
          display: block;
          width: 150px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space:nowrap;
        }
        .number {
          font-size: 30px;
          margin-right: 8px;
        }

        .coupon-type-desc {
          font-size: 16px;
        }
      }
      .date {
        font-size: 12px;
        padding-left: 5px;
      }

      .coupon-item-button {
        border: 1px solid #fff;
        text-align: center;
        height: 23px;
        line-height: 23px;
        width: 70px;
        font-size: 14px;
      }
    }
  }

  &-body {
    height: 55px;
    background-color: #f9f9f9;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    padding-left: 10px;

    .product-type {
      p {
        line-height: 20px
      }
    }

    &-code {
      display: inline-block;
      width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    img {
      width: 40px;
    }
  }
}